Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix closing TrieDB in eth.StateAtBlock #270

Merged
merged 4 commits into from
Nov 28, 2023
Merged

Conversation

magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented Nov 16, 2023

This PR fixes closing triedb in eth.StateAtBlock. Previously trie.Database.Dereference was called in tracers.StateReleaseFunc after the db was closed in deferred function, what wasn't a correct behavior.

@cla-bot cla-bot bot added the s label Nov 16, 2023
@magicxyyz magicxyyz marked this pull request as ready for review November 27, 2023 14:46
Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshuacolvin0 joshuacolvin0 merged commit b1622e6 into master Nov 28, 2023
3 checks passed
@joshuacolvin0 joshuacolvin0 deleted the fix-closing-triedb branch November 28, 2023 23:01
joshuacolvin0 added a commit to OffchainLabs/nitro that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants